using UnityEngine;
using UnityEngine.UI;

public class ItemUI_打坐点 : ItemUIBase<ItemUI_打坐点>
{
	public Button _Btn_打坐;

	public Vector2 _Pos;

	private void Start()
	{
		_Btn_打坐.onClick.AddListener(F_打坐);
	}

	private void Update()
	{
		if (_m可见性 && GameManager._CanPlay && Input.GetKeyDown(KeyCode.E))
		{
			F_打坐();
		}
	}

	private void F_打坐()
	{
		if (_m可见性 && GameManager._CanPlay)
		{
			base._可见性 = false;
			MonoSingleton<GameManager>.Instance.F_打坐(_Pos);
		}
	}
}
